package com.bootdo.core.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.core.dao.UserCoreDao;
import com.bootdo.core.domain.UserCoreDO;
import com.bootdo.core.service.UserCoreService;



@Service
public class UserCoreServiceImpl implements UserCoreService {
	@Autowired
	private UserCoreDao userCoreDao;
	
	@Override
	public UserCoreDO get(Integer id){
		return userCoreDao.get(id);
	}
	
	@Override
	public List<UserCoreDO> list(Map<String, Object> map){
		return userCoreDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return userCoreDao.count(map);
	}
	
	@Override
	public int save(UserCoreDO user){
		return userCoreDao.save(user);
	}
	
	@Override
	public int update(UserCoreDO user){
		return userCoreDao.update(user);
	}
	
	@Override
	public int remove(Integer id){
		return userCoreDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return userCoreDao.batchRemove(ids);
	}

	@Override
	public int review(Integer id, String isAuth) {
		return userCoreDao.review(id,isAuth);
	}
	
}
